/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.helloswing;

import java.awt.Color;
import java.awt.Cursor;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 *
 * @author winnie
 */
public class JComponentStudy extends JFrame {

    public JComponentStudy() {
        createContentPane();
    }

    private void createContentPane() {
        JPanel contentPane = new JPanel();
        
        contentPane.setBackground(Color.yellow);
        contentPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        
        this.setContentPane(contentPane);
        
        this.pack();
        this.setVisible(true);
    }
    
}
